<%@page import="com.sun.xml.internal.bind.v2.schemagen.xmlschema.Import"%>
<%@page import="java.util.ArrayList"%>
<%@page import="Model.*"%>
<%@page import="POJO.*"%>
<% String id = (String)request.getAttribute("id"); 
ArrayList<ItemPOJO> listItem = null;	
if(id != null)
{
	listItem  = ItemModel.ChiTietDonHang(id);
}
%>


<!-- start content-outer ........................................................................................................................START -->
<div id="content-outer">
<!-- start content -->
<div id="content">

	<!--  start page-heading -->
	<div id="page-heading">
		<h1>Detail Order <%= id %></h1>
	</div>
	<!-- end page-heading -->
	
	

	<table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
	<tr>
		<th rowspan="3" class="sized"><img src="images/shared/side_shadowleft.jpg" width="20" height="300" alt="" /></th>
		<th class="topleft"></th>
		<td id="tbl-border-top">&nbsp;</td>
		<th class="topright"></th>
		<th rowspan="3" class="sized"><img src="images/shared/side_shadowright.jpg" width="20" height="300" alt="" /></th>
	</tr>
	<tr>
		<td id="tbl-border-left"></td>
		<td>
		<!--  start content-table-inner ...................................................................... START -->
		<div id="content-table-inner">
		
			<div id="table-content">
		 
				<!--  start product-table ..................................................................................... -->
			
				<table border="0" width="100%" cellpadding="0" cellspacing="0" id="product-table">
				<tr>
					<th class="table-header-repeat line-left minwidth-1"><a href="">ID</a>	</th>
					<th class="table-header-repeat line-left minwidth-1"><a href="">Product</a></th>
					<th class="table-header-repeat line-left minwidth-1"><a href="">Price</a></th>
					<th class="table-header-repeat line-left"><a href="">Number</a></th>
					<th class="table-header-repeat line-left"><a href="">Total</a></th>
				</tr>
				
				<%
					ItemPOJO itPoJo;
					for(int i=0; i< listItem.size(); i++ )
					{		
						itPoJo =  listItem.get(i);
				%>
				
				
				<tr <% if(i%2 ==0 ) out.write("class='alternate-row'"); %>>
					<td><%= itPoJo.getId()%></td>
					<td><%= ProductModel.SelectProductByID(Integer.toString(itPoJo.getProduct_id())).GetName() %></td>
					<td><%= itPoJo.getPrice() %></td>
					<td><%= itPoJo.getNumber() %></td>
					<td><%= itPoJo.getTotal() %></td>
					
				</tr>
				
				<%
					}
				%>
				
				</table>
				<!--  end product-table................................... --> 
			
			</div>
			<!--  end content-table  -->
		
			
			<div class="clear"></div>
		 
		</div>
		<!--  end content-table-inner ............................................END  -->
		</td>
		<td id="tbl-border-right"></td>
	</tr>
	<tr>
		<th class="sized bottomleft"></th>
		<td id="tbl-border-bottom">&nbsp;</td>
		<th class="sized bottomright"></th>
	</tr>
	</table>
	<div class="clear">&nbsp;</div>

</div>
<!--  end content -->
<div class="clear">&nbsp;</div>
</div>
<!--  end content-outer........................................................END -->